package com.lh.entity.vo;

import lombok.Data;

import java.util.Arrays;
import java.util.List;

@Data
public class ConfigEditorPlus {


    // 图片相关配置
    private String imageActionName = "file";
    private String imageFieldName = "file";
    private int imageMaxSize = 2048000;
    private List<String> imageAllowFiles = Arrays.asList(".png", ".jpg", ".jpeg", ".gif", ".bmp");
    private boolean imageCompressEnable = true;
    private int imageCompressBorder = 1600;
    private String imageInsertAlign = "none";
    private String imageUrlPrefix = "";

    // 涂鸦相关配置
    private String scrawlActionName = "crawl";
    private String scrawlFieldName = "file";
    private int scrawlMaxSize = 2048000;
    private String scrawlUrlPrefix = "";
    private String scrawlInsertAlign = "none";

    // 屏幕截图相关配置
    private String snapscreenActionName = "snap";
    private String snapscreenUrlPrefix = "";
    private String snapscreenInsertAlign = "none";

    // 远程图片抓取相关配置
    private List<String> catcherLocalDomain = Arrays.asList("127.0.0.1", "localhost");
    private String catcherActionName = "catch";
    private String catcherFieldName = "source";
    private String catcherUrlPrefix = "";
    private int catcherMaxSize = 2048000;
    private List<String> catcherAllowFiles = Arrays.asList(".png", ".jpg", ".jpeg", ".gif", ".bmp");

    // 视频相关配置
    private String videoActionName = "file";
    private String videoFieldName = "file";
    private String videoUrlPrefix = "";
    private int videoMaxSize = 104857600;
    private List<String> videoAllowFiles = Arrays.asList(".mp4");


    private String audioActionName = "file";
    private String audioFieldName = "file";
    private String audioUrlPrefix = "";
    private int audioMaxSize = 104857600;
    private List<String> audioAllowFiles = Arrays.asList(".mp3");

    // 文件相关配置
    private String fileActionName = "file";
    private String fileFieldName = "file";
    private String fileUrlPrefix = "";
    private int fileMaxSize = 104857600;
    private List<String> fileAllowFiles = Arrays.asList(".zip", ".pdf", ".doc");

    // 图片管理相关配置
    private String imageManagerActionName = "listImage";
    private int imageManagerListSize = 20;
    private String imageManagerUrlPrefix = "";
    private String imageManagerInsertAlign = "none";
    private List<String> imageManagerAllowFiles = Arrays.asList(".jpg", ".png", ".jpeg");

    // 文件管理相关配置
    private String fileManagerActionName = "listFile";
    private int fileManagerListSize = 20;
    private String fileManagerUrlPrefix = "";
    private List<String> fileManagerAllowFiles = Arrays.asList(".zip", ".pdf", ".doc");
}
